package model.base;
import java.util.Date;

import com.jfinal.plugin.activerecord.IBean;

import enums.UnbindStatus;

/**
 * do not modify this file.^_^
 */
@SuppressWarnings("serial")
public abstract class BaseUnbind<M extends BaseUnbind<M>> extends _BaseModel<M> implements IBean {

    /**
     * ID
     */
    public void setId(Long id) {
        set("id", id);
    }

    /**
     * ID
     */
    public Long getId() {
        return getLong("id");
    }
    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        set("createTime", createTime);
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return get("createTime");
    }
    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        set("updateTime", updateTime);
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return get("updateTime");
    }
    /**
     * 绑定关系ID
     */
    public void setScId(Long scId) {
        set("scId", scId);
    }

    /**
     * 绑定关系ID
     */
    public Long getScId() {
        return getLong("scId");
    }
    /**
     * 运维公司ID
     */
    public void setServicerId(Long servicerId) {
        set("servicerId", servicerId);
    }

    /**
     * 运维公司ID
     */
    public Long getServicerId() {
        return getLong("servicerId");
    }
    /**
     * 企业ID
     */
    public void setCompanyId(Long companyId) {
        set("companyId", companyId);
    }

    /**
     * 企业ID
     */
    public Long getCompanyId() {
        return getLong("companyId");
    }
    /**
     * 状态
     */
    public void setStatus(Integer status) {
        set("status", status);
    }

    /**
     * 状态
     */
    public Integer getStatus() {
        return getInt("status");
    }

	public boolean isAuditingStatus(){
        return null != getStatus() && UnbindStatus.getAuditing() == getStatus() ;
    }

	public void setAuditingStatus(){
    	setStatus(UnbindStatus.getAuditing());
    }

	public boolean isPassStatus(){
        return null != getStatus() && UnbindStatus.getPass() == getStatus() ;
    }

	public void setPassStatus(){
    	setStatus(UnbindStatus.getPass());
    }

	public boolean isRefusedStatus(){
        return null != getStatus() && UnbindStatus.getRefused() == getStatus() ;
    }

	public void setRefusedStatus(){
    	setStatus(UnbindStatus.getRefused());
    }
}
